﻿namespace GameHelper.Editor
{
    /// <summary>
    /// 代码生成器自动生成场景/Resources导航菜单
    /// </summary>
    public interface IAssetMenuFilter
    {
        public enum AssetType
        {
            Scene,
            ResourcesDirectory,
        }

        /// <summary>
        /// 菜单过滤器
        /// </summary>
        /// <param name="assetType">资源类型</param>
        /// <param name="assetPath">资源路径</param>
        /// <param name="menuItemName"></param>
        /// <returns>null: 取消当前菜单生成</returns>
        string Filter(AssetType assetType, string assetPath, string menuItemName);
    }
}
